﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" x:Class="UploadingControl.NewDetailPopup"
            
           Title="NewDetailPopup" 
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:my="clr-namespace:UploadingControl">
    <Grid x:Name="LayoutRoot" Background="White" Height="700" Width="650" >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="55" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>

       
            <StackPanel>
                <my:UploadWithPageNumber HorizontalAlignment="Left" x:Name="uploadWithPageNumber1" VerticalAlignment="Top" />
                <my:UploadWithPageNumber HorizontalAlignment="Left" x:Name="uploadWithPageNumber4" VerticalAlignment="Top" />
                <my:UploadWithPageNumber HorizontalAlignment="Left" x:Name="uploadWithPageNumber5" VerticalAlignment="Top" />
                <my:UploadWithPageNumber HorizontalAlignment="Left" x:Name="uploadWithPageNumber3" VerticalAlignment="Top" />
                <my:UploadWithPageNumber HorizontalAlignment="Left" x:Name="uploadWithPageNumber2" VerticalAlignment="Top" />
            </StackPanel>

        <StackPanel HorizontalAlignment="Right">
            <TextBlock Height="23" Name="textBlock1" Text="Images per page:" />
            <TextBox Height="23" Name="textBox1" Width="57" Text="4" />
        </StackPanel>
            
        <Button Content="Add" HorizontalAlignment="Right" Height="28" Margin="0,0,0,10" VerticalAlignment="Bottom" Width="115" Click="Button_Click" />

        <data:DataGrid AutoGenerateColumns="False" Height="174" Margin="1,0,0,0" HorizontalAlignment="Stretch" Name="dataGrid1" VerticalAlignment="Top" AlternatingRowBackground="#FFE4EFF4" Grid.Row="1">
            <data:DataGrid.Columns>
                <data:DataGridTextColumn Binding="{Binding Path=OrderNo}" CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="Order No" IsReadOnly="True" Width="150" />
                <data:DataGridTextColumn Binding="{Binding Path=Description}" CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="Description" IsReadOnly="True" Width="150" />
                <data:DataGridTemplateColumn CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="Action" IsReadOnly="False" Width="190">
                    <data:DataGridTemplateColumn.CellEditingTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <HyperlinkButton Name="hbtnView" Content="Preview" Click="hbtnView_Click"></HyperlinkButton>
                                <HyperlinkButton Name="hbtnEdit" Content="Remove" Click="hbtnEdit_Click"></HyperlinkButton>
                            </StackPanel>
                        </DataTemplate>
                    </data:DataGridTemplateColumn.CellEditingTemplate>
                </data:DataGridTemplateColumn>
            </data:DataGrid.Columns>
        </data:DataGrid>

        <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal">
            <TextBlock Height="50" Text="Tags: " Width="50" FontSize="12" VerticalAlignment="Center" />
            <TextBox Height="50" MaxLength="250" Name="txtTags" Width="600" Text="" />
        </StackPanel>

        <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right"  />
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="10,0,0,0"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>